/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2024-10-27
 * Time:23:10
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(0,1108);
        //System.out.println(myArrayList.contains(2));
        //System.out.println(myArrayList.indexOf(2));
        //System.out.println(myArrayList.get(3));
        //System.out.println(myArrayList.get(4));
        //myArrayList.set(2, 1024);
        myArrayList.remove(2);
        myArrayList.remove(4);
        myArrayList.display();
    }
}
